home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HPAVC
/
HPAVC CD-ROM.iso
/
PWAPCP01.ZIP
/
CU2B
/
CALLUP.PPX
< prev
next >
Wrap
Text File
|
1995-09-03
|
18KB
|
663 lines
;------------------------------------------------------------------------------
; PPLX 1.3O (C)1995 - Lone Runner / AEGiS CoRP'95
;------------------------------------------------------------------------------
; PPE 3.1O (crypted) - Analysis OFF
;------------------------------------------------------------------------------
Boolean BOOLEAN001
Boolean BOOLEAN002
Boolean BOOLEAN003
Boolean BOOLEAN004
Boolean BOOLEAN005
Boolean BOOLEAN006
Boolean BOOLEAN007
Boolean BOOLEAN008
Boolean BOOLEAN009
Boolean BOOLEAN010
Boolean BOOLEAN011
String STRING002
String STRING003
String STRING004
String STRING005
String STRING006
String STRING007
String STRING008
String STRING009
String STRING010
String STRING011
String STRING012
String STRING013
String STRING014
String STRING015
String STRING016
String STRING017
String STRING018
String STRING019
String STRING020
String STRING021
String STRING022
String STRING023
String STRING024
String STRING025
String STRING026
String STRING027
String STRING028
Integer INTEGER002
Integer INTEGER003
Integer INTEGER004
Integer INTEGER005
Date DATE002
;------------------------------------------------------------------------------
BOOLEAN001 = 0
BOOLEAN002 = 0
BOOLEAN003 = 0
BOOLEAN004 = 0
BOOLEAN005 = 0
BOOLEAN006 = 0
BOOLEAN007 = 0
BOOLEAN008 = 0
BOOLEAN009 = 0
BOOLEAN010 = 0
BOOLEAN011 = 0
DATE002 = Date()
STRING002 = ""
STRING003 = ""
STRING004 = ""
STRING005 = ""
STRING006 = ""
STRING007 = ""
STRING008 = ""
STRING009 = ""
STRING010 = ""
STRING011 = ""
STRING012 = ""
STRING013 = ""
STRING014 = ""
STRING015 = ""
STRING016 = ""
STRING017 = ""
STRING018 = ""
STRING019 = ""
STRING020 = ""
STRING021 = ""
STRING022 = ""
STRING023 = ""
STRING024 = ""
STRING025 = ""
STRING026 = ""
STRING027 = ""
STRING028 = ""
INTEGER003 = 0
INTEGER004 = 0
INTEGER005 = 0
INTEGER002 = 0
FOpen 1, PpePath() + PPEName() + ".CFG", 0, 0
FGet 1, STRING002
FGet 1, STRING003
FGet 1, STRING004
FGet 1, STRING005
FGet 1, STRING006
FGet 1, STRING007
FGet 1, STRING008
FGet 1, BOOLEAN001
FGet 1, STRING009
FGet 1, STRING010
FGet 1, STRING011
FGet 1, BOOLEAN002
FGet 1, STRING012
FGet 1, STRING013
FGet 1, BOOLEAN003
FGet 1, STRING014
FClose 1
INTEGER002 = 1
:LABEL001
If (!(((1 < 0) && (INTEGER002 >= 25)) || ((1 >= 0) && (INTEGER002 <= 25)))) Goto LABEL000
STRING015 = Mid(STRING002, INTEGER002, 1)
INTEGER003 = Asc(STRING015) + 3
INTEGER004 = INTEGER004 + INTEGER003
INTEGER002 = INTEGER002 + 1
Goto LABEL001
:LABEL000
STRING016 = (((((((INTEGER004 * Len(Strip(STRING002, " "))) * 4) / 2) * 6) / 2) * 8) / 2) * 10
Gosub LABEL002
GetUser
If (!(U_SEC > STRING004)) Goto LABEL003
PrintLn
DispFile PpePath() + "2HIGH", 2 + 1 + 4
PrintLn
Wait
Cls
End
:LABEL003
PrintLn
DispFile PpePath() + "WELC", 2 + 1 + 4
PrintLn
Wait
Gosub LABEL002
PrintLn
DispFile PpePath() + "SEL", 2 + 1 + 4
If (!BOOLEAN002) Goto LABEL004
PrintLn
PrintLn "@X0CHit <enter> to abort callback."
InputStr "@X0FCall Your (V)oice " + U_HVPHONE + " (D)ata " + U_BDPHONE + " or (E)nter number ", STRING017, 15, 1, "DEV", 8 + 32 + 2 + 4
:LABEL004
If (BOOLEAN002) Goto LABEL005
PrintLn
PrintLn "@X0CHit <enter> to abort callback."
InputStr "@X0FCall Your (V)oice " + U_HVPHONE + " (D)ata " + U_BDPHONE + " Line ", STRING017, 15, 1, "DV", 8 + 32 + 2 + 4
:LABEL005
If (!(STRING017 == "")) Goto LABEL006
Gosub LABEL002
PrintLn
DispFile PpePath() + "ABORT", 2 + 1 + 4
PrintLn
Wait
Cls
End
:LABEL006
If ((STRING017 == "D")) Gosub LABEL007
If ((STRING017 == "V")) Gosub LABEL007
If ((STRING017 == "E")) Gosub LABEL008
Gosub LABEL009
If (BOOLEAN004) Goto LABEL010
Goto LABEL011
:LABEL010
Gosub LABEL008
:LABEL011
Gosub LABEL012
Gosub LABEL013
FOpen 1, PpePath() + "LOC_EXC.DAT", 0, 3
SearchInit STRING019 + "-" + STRING020, 1
:LABEL015
If (!(!Ferr(1) && !BOOLEAN007)) Goto LABEL014
FGet 1, STRING023
SearchFind STRING023, BOOLEAN007
Goto LABEL015
:LABEL014
SearchStop
FClose 1
If (!BOOLEAN007) Goto LABEL016
Goto LABEL017
:LABEL016
If (BOOLEAN008) Goto LABEL018
FOpen 1, PpePath() + "LC_EX_1.DAT", 0, 3
SearchInit STRING019 + "-" + STRING020, 1
:LABEL020
If (!(!Ferr(1) && !BOOLEAN008)) Goto LABEL019
FGet 1, STRING023
SearchFind STRING023, BOOLEAN008
Goto LABEL020
:LABEL019
SearchStop
FClose 1
:LABEL018
If (!BOOLEAN008) Goto LABEL021
Goto LABEL017
:LABEL021
If (!BOOLEAN001) Goto LABEL022
FOpen 1, PpePath() + "AREACODE.DAT", 0, 3
SearchInit STRING019, 1
:LABEL024
If (!(!Ferr(1) && !BOOLEAN009)) Goto LABEL023
FGet 1, STRING024
SearchFind STRING024, BOOLEAN009
Goto LABEL024
:LABEL023
SearchStop
FClose 1
:LABEL022
If (BOOLEAN009) Goto LABEL025
Gosub LABEL002
PrintLn
DispFile PpePath() + "ACLDN", 2 + 1 + 4
PrintLn
Wait
Cls
End
:LABEL025
If (!(Mid(STRING010, 1, 5) < Mid(STRING011, 1, 5))) Goto LABEL026
If (!(((Dow(Date()) <> 6) && BOOLEAN009) && ((Time() / 36 < Mid(Strip(STRING010, ":"), 1, 5)) || (Time() / 36 >= Mid(Strip(STRING011, ":"), 1, 5))))) Goto LABEL026
Gosub LABEL002
PrintLn
DispFile PpePath() + "LDNO", 2 + 1 + 4
PrintLn
Wait
Cls
End
:LABEL026
If (!(Mid(STRING010, 7, 5) < Mid(STRING011, 7, 5))) Goto LABEL027
If (!(((Dow(Date()) == 7) && BOOLEAN009) && ((Time() / 36 < Mid(Strip(STRING010, ":"), 7, 5)) || (Time() / 36 >= Mid(Strip(STRING011, ":"), 7, 5))))) Goto LABEL027
Gosub LABEL002
PrintLn
DispFile PpePath() + "LDNO", 2 + 1 + 4
PrintLn
Wait
Cls
End
:LABEL027
If (!(Mid(STRING010, 1, 5) > Mid(STRING011, 1, 5))) Goto LABEL028
If (!(((Dow(Date()) <> 6) && BOOLEAN009) && ((Time() / 36 < Mid(Strip(STRING010, ":"), 1, 5)) && (Time() / 36 >= Mid(Strip(STRING011, ":"), 1, 5))))) Goto LABEL028
Gosub LABEL002
PrintLn
DispFile PpePath() + "LDNO", 2 + 1 + 4
PrintLn
Wait
Cls
End
:LABEL028
If (!(Mid(STRING010, 7, 5) > Mid(STRING011, 7, 5))) Goto LABEL029
If (!(((Dow(Date()) == 7) && BOOLEAN009) && ((Time() / 36 < Mid(Strip(STRING010, ":"), 7, 5)) && (Time() / 36 >= Mid(Strip(STRING011, ":"), 7, 5))))) Goto LABEL029
Gosub LABEL002
PrintLn
DispFile PpePath() + "LDNO", 2 + 1 + 4
PrintLn
Wait
Cls
End
:LABEL029
If (!BOOLEAN009) Goto LABEL030
Goto LABEL017
:LABEL030
If (!((!BOOLEAN007 && !BOOLEAN008) && !BOOLEAN009)) Goto LABEL017
Gosub LABEL002
PrintLn
DispFile PpePath() + "ERROR", 2 + 1 + 4
PrintLn
Wait
Cls
End
:LABEL017
Gosub LABEL002
PrintLn
DispFile PpePath() + "CALL", 2 + 1 + 4
PrintLn
Wait
If (!BOOLEAN007) Goto LABEL031
PrintLn "@X0F" + STRING002 + " will make (@X0C" + STRING008 + "@X0F) attempt(s) to connect to you."
PrintLn
PrintLn "@X0FEach attempt will last for (@X0C" + STRING012 + "@X0F) seconds."
PrintLn
Wait
STRING026 = STRING008
STRING027 = 1
:LABEL031
If (!(BOOLEAN009 || BOOLEAN008)) Goto LABEL032
PrintLn "@X0F" + STRING002 + " will make (@X0C" + STRING009 + "@X0F) attempt(s) to connect to you."
PrintLn
PrintLn "@X0FEach attempt will last for (@X0C" + STRING012 + "@X0F) seconds."
PrintLn
Wait
STRING026 = STRING009
STRING027 = 1
:LABEL032
If (!OnLocal()) Goto LABEL033
BOOLEAN011 = 1
PrintLn
PrintLn " <<<*** BEGINNING LOCAL MODE SIMULATON ***>>>"
PrintLn
Wait
Goto LABEL034
:LABEL033
If (!((STRING026 >= STRING027) && !BOOLEAN010)) Goto LABEL035
CdChkOff
KbdChkOff
DtrOff
Delay 180
DtrOn
STRING026 = STRING026 - 1
PrintLn "@X0CUser has " + STRING026 + " attempts left."
PrintLn "@X0CInitializing modem...."
SendModem "AT" + STRING013
SendModem Chr(13)
Delay 180
PrintLn "@X0CDialing and waiting...."
SendModem "ATDT"
If (!BOOLEAN007) Goto LABEL036
SendModem STRING020 + STRING021
Goto LABEL037
:LABEL036
If (!BOOLEAN008) Goto LABEL038
SendModem "1" + STRING020 + STRING021
Goto LABEL037
:LABEL038
If (!BOOLEAN009) Goto LABEL037
SendModem "1" + STRING019 + STRING020 + STRING021
Goto LABEL037
:LABEL037
SendModem Chr(13)
WaitFor "CONNECT", BOOLEAN010, STRING012
Goto LABEL033
:LABEL035
If (!BOOLEAN010) Goto LABEL039
CdChkOn
KbdChkOn
:LABEL034
STRING026 = 1
:LABEL042
If (!((STRING026 <= STRING006) && (STRING025 <> U_PWD))) Goto LABEL040
KbdFlush
MdmFlush
Cls
PrintLn
PrintLn
PrintLn
Gosub LABEL002
DispFile PpePath() + "PWORD", 2 + 1 + 4
PrintLn
InputStr "@X0CEnter Password:", STRING025, 15, 12, Mask_Pwd(), 8 + 1 + 32 + 2
If (!(STRING025 <> U_PWD)) Goto LABEL041
PrintLn
DispFile PpePath() + "WRONG", 2 + 1 + 4
PrintLn
STRING026 = STRING026 + 1
STRING025 = ""
Wait
:LABEL041
Goto LABEL042
:LABEL040
If (!(STRING025 <> U_PWD)) Goto LABEL043
Gosub LABEL002
PrintLn
DispFile PpePath() + "OUT", 2 + 1 + 4
PrintLn
Delay 180
Hangup
:LABEL043
If (!(STRING025 == U_PWD)) Goto LABEL044
U_SEC = STRING005
U_EXPDATE = DATE002 + STRING007
If (!BOOLEAN003) Goto LABEL045
STRING028 = "[" + STRING019 + "-" + STRING020 + "-" + STRING021 + "] " + String(Date()) + " " + Mid(String(Time()), 1, 5)
U_CMNT2 = STRING028
:LABEL045
Gosub LABEL002
DispFile PpePath() + "UP", 2 + 1 + 4
PrintLn
PutUser
FAppend 1, PpePath() + "VERIFIED.DAT", 1, 3
FPutLn 1, STRING019 + "-" + STRING020 + "-" + STRING021 + " :" + U_Name()
FClose 1
:LABEL044
If (!BOOLEAN011) Goto LABEL046
End
:LABEL046
If (!(BOOLEAN009 || BOOLEAN008)) Goto LABEL047
DispFile PpePath() + "LDOFF", 2 + 1 + 4
PrintLn
Delay 180
Hangup
:LABEL047
If (!BOOLEAN007) Goto LABEL039
Wait
:LABEL039
Cls
End
:LABEL007
If (!(STRING017 == "D")) Goto LABEL048
STRING022 = StripStr(U_BDPHONE, "(")
:LABEL048
If (!(STRING017 == "V")) Goto LABEL049
STRING022 = StripStr(U_HVPHONE, "(")
:LABEL049
STRING022 = StripStr(STRING022, ")")
STRING022 = StripStr(STRING022, "-")
STRING022 = StripStr(STRING022, " ")
STRING019 = Mid(STRING022, 1, 3)
STRING020 = Mid(STRING022, 4, 3)
STRING021 = Mid(STRING022, 7, 4)
Return
:LABEL009
If (!(Len(STRING022) <> 10)) Goto LABEL050
PrintLn
PrintLn "@X0CPhone Number Must Be In (xxx)xxx-xxxx of xxx-xxx-xxxx Format."
PrintLn "@X0CPlease enter your phone number with full area code."
PrintLn
STRING017 = "E"
BOOLEAN004 = 1
:LABEL050
Return
:LABEL002
Cls
PrintLn
PrintLn "@X0F Welcome to CallUp v2.ß -- User Callback Verifier."
PrintLn "@X0F Copyright (C) 1995 James Nerlinger"
PrintLn
If (!(STRING016 == STRING003)) Goto LABEL051
INTEGER005 = (50 - Len(STRING002)) / 2
Forward INTEGER005
Print "@X0FCallUp v2.ß Is Registered To " + STRING002
PrintLn
:LABEL051
If (!(STRING016 <> STRING003)) Goto LABEL052
Forward INTEGER005
Print "@X0FCallUp v2.ß Is Registered To " + STRING002
:LABEL052
Return
:LABEL008
STRING019 = ""
STRING020 = ""
STRING021 = ""
:LABEL064
If (!(STRING018 <> "C")) Goto LABEL053
STRING018 = ""
:LABEL056
If (!(Len(StripStr(STRING019, " ")) < 3)) Goto LABEL054
InputStr "@X0FYour Area Code (enter to abort): ", STRING019, 15, 3, Mask_Num(), 2 + 32 + 4
If (!(STRING019 == "")) Goto LABEL055
Gosub LABEL002
PrintLn
DispFile PpePath() + "ABORT", 2 + 1 + 4
PrintLn
Wait
Cls
End
:LABEL055
Goto LABEL056
:LABEL054
If (!(Len(StripStr(STRING020, " ")) < 3)) Goto LABEL057
InputStr "@X0FYour Prefix (enter to abort): ", STRING020, 15, 3, Mask_Num(), 2 + 32 + 4
If (!(STRING020 == "")) Goto LABEL058
Gosub LABEL002
PrintLn
DispFile PpePath() + "ABORT", 2 + 1 + 4
PrintLn
Wait
Cls
End
:LABEL058
Goto LABEL054
:LABEL057
If (!(Len(StripStr(STRING021, " ")) < 4)) Goto LABEL059
InputStr "@X0FYour Suffix (enter to abort): ", STRING021, 15, 4, Mask_Num(), 2 + 32 + 4
If (!(STRING021 == "")) Goto LABEL060
Gosub LABEL002
PrintLn
DispFile PpePath() + "ABORT", 2 + 1 + 4
PrintLn
Wait
Cls
End
:LABEL060
Goto LABEL057
:LABEL059
STRING022 = STRING019 + STRING020 + STRING021
:LABEL063
If (!(STRING018 == "")) Goto LABEL061
InputStr "@X0FYou Entered @X0C" + STRING019 + "-" + STRING020 + "-" + STRING021 + "@X0F (C)ontinue or (R)e-enter ", STRING018, 15, 1, "CR", 8 + 2 + 32 + 4
If (!(STRING018 == "")) Goto LABEL062
Gosub LABEL002
PrintLn
DispFile PpePath() + "ABORT", 2 + 1 + 4
PrintLn
Wait
Cls
End
:LABEL062
Goto LABEL063
:LABEL061
Goto LABEL064
:LABEL053
Return
:LABEL012
FOpen 1, PpePath() + "VERIFIED.DAT", 0, 3
SearchInit STRING019 + "-" + STRING020 + "-" + STRING021, 0
:LABEL066
If (!(!Ferr(1) && !BOOLEAN005)) Goto LABEL065
FGet 1, STRING024
STRING024 = Mid(STRING024, 1, 12)
SearchFind STRING024, BOOLEAN005
Goto LABEL066
:LABEL065
SearchStop
FClose 1
If (!BOOLEAN005) Goto LABEL067
Gosub LABEL002
PrintLn
DispFile PpePath() + "ALRDY", 2 + 1 + 4
PrintLn
Wait
Cls
End
:LABEL067
Return
:LABEL013
FOpen 1, PpePath() + "TRASH.DAT", 0, 3
SearchInit STRING019 + "-" + STRING020 + "-" + STRING021, 0
:LABEL073
If (!(!Ferr(1) && !BOOLEAN006)) Goto LABEL068
FGet 1, STRING024
STRING024 = Mid(STRING024, 1, 12)
If (!(Mid(STRING024, 1, 12) == STRING019 + "-???-????")) Goto LABEL069
Gosub LABEL002
PrintLn
DispFile PpePath() + "ACNO", 2 + 1 + 4
PrintLn
Wait
Cls
End
:LABEL069
If (!(Mid(STRING024, 1, 12) == "???-" + STRING020 + "-????")) Goto LABEL070
Gosub LABEL002
PrintLn
DispFile PpePath() + "PRENO", 2 + 1 + 4
PrintLn
Wait
Cls
End
:LABEL070
If (!(Mid(STRING024, 1, 12) == "???-???-" + STRING021)) Goto LABEL071
Gosub LABEL002
PrintLn
DispFile PpePath() + "SUFNO", 2 + 1 + 4
PrintLn
Wait
Cls
End
:LABEL071
If (!(Mid(STRING024, 1, 12) == STRING019 + "-" + STRING020 + "-" + STRING021)) Goto LABEL072
Gosub LABEL002
PrintLn
DispFile PpePath() + "TRASH", 2 + 1 + 4
PrintLn
Wait
Cls
End
:LABEL072
SearchFind STRING024, BOOLEAN006
Goto LABEL073
:LABEL068
SearchStop
FClose 1
Return
;------------------------------------------------------------------------------
;
; Statements used :
;
; 19 End
; 20 Cls
; 24 Wait
; 82 Goto
; 80 Let
; 1 Print
; 77 PrintLn
; 64 If
; 25 DispFile
; 6 FOpen
; 1 FAppend
; 7 FClose
; 21 FGet
; 1 FPutLn
; 2 Hangup
; 1 GetUser
; 1 PutUser
; 7 InputStr
; 29 Gosub
; 6 Return
; 1 DtrOn
; 1 DtrOff
; 1 CdChkOn
; 1 CdChkOff
; 4 Delay
; 7 SendModem
; 1 WaitFor
; 1 KbdChkOn
; 1 KbdChkOff
; 1 Forward
; 1 KbdFlush
; 1 MdmFlush
; 5 SearchInit
; 5 SearchFind
; 5 SearchStop
;
;
; Functions used :
;
; 5 *
; 12 /
; 179 +
; 2 -
; 19 ==
; 8 <>
; 10 <
; 2 <=
; 3 >
; 7 >=
; 75 !
; 21 &&
; 5 ||
; 6 Len(
; 27 Mid()
; 5 Ferr()
; 2 Chr()
; 1 Asc()
; 6 Date()
; 9 Time()
; 1 U_Name()
; 4 Dow()
; 9 Strip()
; 2 String()
; 1 Mask_Pwd()
; 3 Mask_Num()
; 32 PpePath()
; 1 OnLocal()
; 1 PPEName()
; 8 StripStr()
;
;-----------------------------------------------------------------------------;
; (C)1995 AEGiS CoRP - Main Code by Lone Runner - Parts by The doC ;
;-----------------------------------------------------------------------------;
; ___________ _______________________ _____________ ;
;[=======\ \====/ / /_____ / /=======];
; ::::::::\ ______ \::/ \_____ / _______ /______)/ \_______ /:::::::: ;
; ::kL!:::_\/ _/ \/ ___)__\/ \ \/ \_________ \/::::::::: ;
; ::::::::\ __ \_ \ \_ \_ \_ \_ / \_:::::::: ;
;[=========\_____/______/__________/___________/_________/__________/========];
; ;
; C O R P ;
;-----------------------------------------------------------------------------;
; Dedicated to pure anarchists all around the world... ;
;-----------------------------------------------------------------------------;